<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateDepartmentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('department', function (Blueprint $table) {
            $table->integer('id',10)->comment('ID');
            $table->string('name',100)->comment('部门名称');
            $table->string('type')->comment('等级 1：一级 2：二级');
            $table->string('addtime',100)->comment('添加时间');
        });
        DB::statement("alter table `clockin` comment '部门配置表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('department');
    }
}
